package com.forlove.app.common.widget.textstyle;



import android.content.Context;
import android.graphics.Typeface;

public class TypefaceUtil {

	private static TypefaceUtil mInstance;

	private Typeface mTypeface;

	private TypefaceUtil() {
		super();
	}

	public static TypefaceUtil getInstance() {
		if (mInstance == null) {
			mInstance = new TypefaceUtil();
		}
		return mInstance;
	}

	public Typeface getTypeface(Context context) {
		if (context == null) {
			return null;
		}
		if (mTypeface == null) {
			mTypeface = FontManager.instance(context).getDefaultFace();
		}
		return mTypeface;
	}
}
